Skip to content

feat(ui): add reference_picker_center_on_jump config - #266

Closed
jensenojs wants to merge 1 commit into
sudo-tee:mainfrom
jensenojs:feat/reference-picker-center-config
Closed

feat(ui): add reference_picker_center_on_jump config#266
jensenojs wants to merge 1 commit into
sudo-tee:mainfrom
jensenojs:feat/reference-picker-center-config

Conversation

@jensenojs

@jensenojs jensenojs commented Feb 12, 2026

Copy link
Copy Markdown
Collaborator
  • Default false : center viewport when jumping to code references.

-Default true: center viewport when jumping to code references.
@jensenojs

Copy link
Copy Markdown
Collaborator Author

at 0:13 in the video it looks like the cursor jumped up a little when re-opening the output buffer. do you know why that's happening?

@disrupted what do you think?

@sudo-tee

Copy link
Copy Markdown
Owner

@jensenojs

I am not sure about this one, since the reference picker is just opening the the file, the cursor should be where it was the last time ?

I feel that this kind of personal preferences would be best addressed with an autocmd in the user config ?

Was there a specific issue with how the reference picker was opening the files ?

@disrupted

Copy link
Copy Markdown
Contributor

at 0:13 in the video it looks like the cursor jumped up a little when re-opening the output buffer. do you know why that's happening?

@disrupted what do you think?

commented on the wrong PR first time 🤦🏻‍♂️

yeah, I have to agree with @sudo-tee here. I would also prefer if we simply restore the cursor position as-is. it shouldn't require any special followup handling such as centering the viewport

@jensenojs

Copy link
Copy Markdown
Collaborator Author

Sorry, I got confused, What I originally wanted to fix was this problem.

at 0:13 in the video it looks like the cursor jumped up a little when re-opening the output buffer. do you know why that's happening?在视频的 0:13 处,重新打开 output buffer 时光标似乎稍微向上跳了一下。你知道这是为什么吗?

But this change has nothing to do with it.. I'll close this

@jensenojs jensenojs closed this Feb 13, 2026
@jensenojs
jensenojs deleted the feat/reference-picker-center-config branch February 13, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants